<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$eju.field.username}的店铺</title>
    <meta name="description" content="{$eju.field.seo_description}" />
    <meta name="keywords" content="{$eju.field.seo_keywords}" />
    <link href="{eju:global name='web_cmspath' /}/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<meta name="applicable-device"content="pc">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <link rel="stylesheet" type="text/css" href="{eju:global name='web_templets_pc' /}/skin/css/reset.css">
    <link rel="stylesheet" type="text/css" href="{eju:global name='web_templets_pc' /}/skin/css/common.css">
    <link rel="stylesheet" type="text/css" href="{eju:global name='web_templets_pc' /}/skin/css/input.css">
    <link rel="stylesheet" type="text/css" href="{eju:global name='web_templets_pc' /}/skin/css/css.css">
    <link rel="stylesheet" type="text/css" href="{eju:global name='web_templets_pc' /}/skin/css/jingjiren.css">
    <script src="{eju:global name='web_templets_pc' /}/skin/js/jquery.min.js"></script>
</head>
<body>
<!-- topBar S -->
{eju:include file="header.htm"/}
<!-- topBar E -->

<!-- 搜索栏 S -->
{eju:include file="agent/search.htm"/}
<!-- 搜索栏 E -->
<!-- 楼盘列表 S-->
<div class="cm_house">
    <div class="comWidth">
        <!-- 页面标识 S-->
        {eju:include file="agent/identify.htm"/}
        <!-- 页面标识 E-->

        <div class="main clearfix">
            <!-- 二手房列表 S-->
            <div class="houseList_wrap leftArea cm_leftArea">

                {eju:screening id='field' channelid='14' currentstyle='active'  region='on' show='2' alltxt='全部' opencity='1' addfields="total_price,area,room" present='on'}
                <div class="contentCtn">
                    {eju:volist name='$field.list' id='vo'}
                    <div class="my_xl">
                        <input name="hidden0" type="hidden" id="hidden0" class="my_xl_input" value="">
                        <div class="my_xl_txt" id="zongjia">{$vo.screen}</div>
                        <div class="my_xl_btn"></div>
                        <ul class="my_xl_list">
                            {eju:volist name='$vo.dfvalue' id='vo2'}
                            <a class="{$vo2.currentstyle}" {$vo2.onClick}>
                                <li data-key="PriceBase" value="">{$vo2.name}</li>
                            </a>
                            {/eju:volist}
                        </ul>
                    </div>
                    {/eju:volist}
                    {eju:searchform type='default' channelid='14' id='field1' present='on'}
                    <form  method="get" action="{$field1.action}">
                    <div class="houseSearch">
                        <input type="hidden" name="users_id" id="users_id"   value="{$eju.field.id}">
                        <input type="text" id="keywords" name="keywords" class="searchInput" value="{$Request.param.keywords}" autocomplete="off" placeholder="请输入商铺名称">
                        <input type="submit" name="button" id="bottonss"  class="searchBtn" value="">
                    </div>
                        {$field1.hidden}
                    </form>
                    {/eju:searchform}
                    <p><i></i><a href="{$field.resetUrl}" >清空筛选条件</a></p>
                </div>
                {$field.hidden}
                {/eju:screening}

                <div class="cl"></div>
                <div class="list_con sh_house_list" >
                    <ul class="clearfix">
                        {eju:list pagesize='10' users_id='$eju.field.id' channelid='14' titlelen='30' orderby='new' addfields='building_age' }
                        <li>
                            <a href="{$field.arcurl}" title="{$field.title}">
                                <span class="l_img fl">
                                    <img src="{eju:global name='web_templets_pc' /}/skin/img/nopic.jpg" data-original="{$field.litpic}" class="lazy" alt="{$field.title}">
                                </span>
                                <span class="r_con fr">
                                    <h3>{$field.title}</h3>
                                    <p class="hi">
                                        <span class="info">类型：{$field.manage_type}</span>
                                        <span class="l">|</span> <span class="info">面积：{$field.area}{$field.area_unit}</span>
                                    </p>
                                    <p class="hi">
                                        <span class="tit">{$field.area_id|get_area_name}- </span>
                                        <span class="address">{$field.address}</span>
                                    </p>
                                    <p class="user-info hi">
                                        <span><i class="iconfont">&#xe605;</i>置业顾问：{$field.sale_name}</span>
                                    </p>
                                    <span class="label_list clearfix"> {eju:volist name="$field.characteristic" id="vo"} <i class="item item{$i}">{$vo}</i> {/eju:volist} </span>
                                    <span class="price">
                                         <h5>{eju:notempty name="$field.total_price"}<strong>{$field.total_price}</strong>{$field.total_price_unit}{eju:else /}暂无{/eju:notempty}</h5>
                                          <h2>{eju:notempty name="$field.average_price"}{$field.average_price}{$field.average_price_unit}{eju:else /}暂无{/eju:notempty}</h2>
                                    </span>
                                </span>
                            </a>
                        </li>
                        {/eju:list}
                    </ul>
                </div>
                <div style="display: none" id="countlist_none" data-count="{eju:countlist /}"></div>
                <!--<script  type="text/javascript">-->
                    <!--$(function(){-->
                        <!--var count = $("#countlist_none").data("count");-->
                        <!--$("#search_count").html(count);-->
                    <!--});-->
                <!--</script>-->
                <div class="page_list clearfix">
                    <ul class="pagination">
                        {eju:pagelist listitem="pageno,pre,next" listsize="5"/}
                    </ul>
                </div>
            </div>
            <!-- 二手房列表 E-->
            <!-- 右边内容 S -->
      <div class="cm_rightArea rightArea">
        <div class="contentRight">
          <h2>服务信息</h2>
          <!--所属机构-->
          <div>
            <div class="box"> 
              <p class="jjr_1">所属机构</p>
              <span>{$eju.field.company}</span>  </div>
          </div>
          <div class="box">
            <p class="jjr_3">主营区域</p>
            {eju:volist name="$eju.field.service_area" id="vo"} <span>{$vo.name}</span> {/eju:volist} </div>
          <div class="box">
            <p class="jjr_4">主营小区</p>
            {eju:volist name="$eju.field.service_xiaoqu" id="vo"} <span> <a href="{$vo.arcurl}" target="_blank"> {$vo.title} </a> </span> {/eju:volist} </div>
        </div>
      </div>
      <!-- 右边内容 E --> 
    </div>
  </div>
</div>
<!-- 楼盘列表 S--> 

<script type="text/javascript" src="{eju:global name='web_templets_pc' /}/skin/js/laytpl.js"></script> 
<script type="text/javascript">
    $(function(){
        $("#select select").on('change',function(){
            var uri = $(this).find("option:selected").data('uri');
            window.location.href = uri;
        });
        $("#keyword").on('keyup click',function(e){
            e.preventDefault();
            e.stopPropagation();
            var keyword = $(this).val(),url = $(this).data('uri'),box = $('#search-box');
            $.get(url,{keyword: $.trim(keyword)},function(result){
                if(result.code == 1)
                {
                    var gettpl = document.getElementById('template').innerHTML;
                    laytpl(gettpl).render(result.data, function(html){
                        $('#search-box').html(html);
                    });
                    box.show();
                }else{
                    box.hide();
                }
            });
        });
        $('body').on('click',function(){
            $('#search-box').hide();
        });
    })
</script> 
{eju:include file="footer.htm"/} 

<script src="{eju:global name='web_templets_pc' /}/skin/js/jquery.lazyload.js"></script> 
<script src="{eju:global name='web_templets_pc' /}/skin/js/layer.js"></script> 
<script src="{eju:global name='web_templets_pc' /}/skin/js/form_xl.js"></script> 
<script>
        
        $(function() {
            $("#bottonss").click(function() {
                var dd = $("#hidden0").val();
                var dd1 = $("#Hidden1").val();
                var dd2 = $("#Hidden2").val();
                //模糊搜索字段
                var dds = $("#xiaoquid").val();
                // var sou = "68680";
                if (dd != null && dd !="") {
                    dd = "-p"+dd;
                }
                if (dd1 != null && dd1 != "") {
                    dd1 = "-a"+dd1;
                }
                if (dd2 != null && dd2 != "") {
                    dd2 = "-l"+dd2;
                }
                

            });
        });
        $(function() {
            var hr = window.location.href;
            var str=hr.split("_");
            var zj = str[1];
            getData(zj, "#hidden0", "#zongjia");
            var mj = str[2];
            getData(mj, "#Hidden1", "#mianji");
            var hx = str[3];
            getData(hx, "#Hidden2", "#huxing");
            var xq = str[4];
            if (xq != "" && xq != null) {
                $("#xiaoquid").val(decodeURIComponent(xq));
            }

            //var name0 = $("#hidden0").pasaleHouse(".my_xl").find(".my_xl_list li[value=" + mj + "]").html();
            //$("#zongjia").html(name0);
        })
        function getData(name, num, adds) {
            if (name != -1 && name != "" && name != null) {
                $(num).val(name);
                var bb = $(num).pasaleHouse(".my_xl").find(".my_xl_list li[value=" + name + "]").html();
                $(adds).html(bb);
                var container = $("body"),
                    scrollTo = $('.content');
                container.scrollTop(0);
                container.scrollTop(
                    scrollTo.offset().top - container.offset().top + container.scrollTop()
                );
            }
        }
    </script>
<script>
    $("img.lazy").lazyload({
        threshold : 100,
        effect : "fadeIn"
        //event: "scrollstop"
    });
    $(function(){
        $('.follow').on('click',function(){
            var house_id = $(this).data('id'),model = $(this).data('model'),url = $(this).data('uri'),me = $(this);
            $.post(url,{house_id:house_id,model:model},function(result){
                if(result.code == 1)
                {
                    layer.msg(result.msg,{icon:1});
                    if(me.hasClass('on'))
                    {
                        me.removeClass('on').text(result.text);
                    }else{
                        me.addClass('on').text(result.text);
                    }
                }else{
                    layer.msg(result.msg,{icon:2});
                }
            });
        });
    });
	</script>
</body>
</html>
